package com.huangpuweb.task.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class SysHpScenicStateRowMapper implements RowMapper<SysHpScenicState>{



	@Override
	public SysHpScenicState mapRow(ResultSet rs, int rowNum) throws SQLException {
		SysHpScenicState  lj= new SysHpScenicState();
		lj.setId(rs.getInt("id"));
		lj.setSpotName(rs.getString("spotName"));
		lj.setSpotCode(rs.getString("spotCode"));
		lj.setTotalNumber(rs.getInt("totalNumber"));
		lj.setRealTimeNumber(rs.getInt("realTimeNumber"));
		lj.setMaxNumber(rs.getInt("maxNumber"));
		lj.setMaxTime(rs.getString("maxTime"));
		lj.setPeopleDensity(rs.getString("peopleDensity"));
		lj.setRiskLevel(rs.getInt("riskLevel"));
		lj.setSpotArea(rs.getString("spotArea"));
		lj.setMonitorNumber(rs.getInt("monitorNumber"));
		lj.setRecordTime(rs.getString("recordTime"));
		return lj;
	}

}
